package com.lesama.constructor;

public class Student {
    String name;
    int age;
    public Student(String name, int age) {
        System.out.println("构造函数");
        this.name = name;
        this.age = age;
    }
    public void print() {
        System.out.println("姓名是 " + name + "---年龄为： " + age);
    }
}
